try:
    num = int(input("Enter a number: "))
    result = 10/num
except  ValueError:
    print("Please enter a number")
except ZeroDivisionError:
    print("不可以除以0")
else:
    print(f"计算结果是：{result}")
finally:
    print("程序运行结束")
